<?php
/**
 * Контроллер статей фронт-енда
 * 
 * @category Phorm
 * @package Controller_Module_Default
 * @name /Phorm/Controller/Module/Default/Articles.php
 * @copyright phorm.ru
 * @since 03.01.2011
 * @author vladimir@kachalov.net
 */

class Phorm_Controller_Module_Default_Articles extends Phorm_Controller_Controller {
	
	/**
	 * Просмотр текста статьи
	 *
	 * @return void
	 */
	
	public function viewAction() {
		
		if(isset($this->_params['resourceinfo'])) {
			
			$this->view->assign('Title',$this->_params['resourceinfo']['seotitle']);
			$this->view->assign('Header',$this->_params['resourceinfo']['resourcename']);
			$this->view->assign('Description',$this->_params['resourceinfo']['seodescription']);
			$this->view->assign('Keywords',$this->_params['resourceinfo']['seokeywords']);
			
			$this->view->assign('ArticleInfo',$this->_params['resourceinfo']);
			
		} else {
		
			return $this->_forward('notfound','error','default',array('action'=>'notfound','controller'=>'error','module'=>'default'));	
			
		}
		
	}

		
}

 